package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PmsPurchaseSkuMapper;
import com.ruoyi.system.domain.PmsPurchaseSku;
import com.ruoyi.system.service.IPmsPurchaseSkuService;

/**
 * 采购详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-15
 */
@Service
public class PmsPurchaseSkuServiceImpl implements IPmsPurchaseSkuService 
{
    @Autowired
    private PmsPurchaseSkuMapper pmsPurchaseSkuMapper;

    /**
     * 查询采购详情
     * 
     * @param id 采购详情主键
     * @return 采购详情
     */
    @Override
    public PmsPurchaseSku selectPmsPurchaseSkuById(Long id)
    {
        return pmsPurchaseSkuMapper.selectPmsPurchaseSkuById(id);
    }

    /**
     * 查询采购详情列表
     * 
     * @param pmsPurchaseSku 采购详情
     * @return 采购详情
     */
    @Override
    public List<PmsPurchaseSku> selectPmsPurchaseSkuList(PmsPurchaseSku pmsPurchaseSku)
    {
        return pmsPurchaseSkuMapper.selectPmsPurchaseSkuList(pmsPurchaseSku);
    }

    /**
     * 新增采购详情
     * 
     * @param pmsPurchaseSku 采购详情
     * @return 结果
     */
    @Override
    public int insertPmsPurchaseSku(PmsPurchaseSku pmsPurchaseSku)
    {
        return pmsPurchaseSkuMapper.insertPmsPurchaseSku(pmsPurchaseSku);
    }

    /**
     * 修改采购详情
     * 
     * @param pmsPurchaseSku 采购详情
     * @return 结果
     */
    @Override
    public int updatePmsPurchaseSku(PmsPurchaseSku pmsPurchaseSku)
    {
        return pmsPurchaseSkuMapper.updatePmsPurchaseSku(pmsPurchaseSku);
    }

    /**
     * 批量删除采购详情
     * 
     * @param ids 需要删除的采购详情主键
     * @return 结果
     */
    @Override
    public int deletePmsPurchaseSkuByIds(Long[] ids)
    {
        return pmsPurchaseSkuMapper.deletePmsPurchaseSkuByIds(ids);
    }

    /**
     * 删除采购详情信息
     * 
     * @param id 采购详情主键
     * @return 结果
     */
    @Override
    public int deletePmsPurchaseSkuById(Long id)
    {
        return pmsPurchaseSkuMapper.deletePmsPurchaseSkuById(id);
    }
}
